public class Java17 {
    enum Days {
        SAT, SUN
    }

    public static void main(String[] args) {
        var index = (int) (Math.random() * 100);

        var day = index % 2 == 0 ? Days.SAT : Days.SUN;
        switch (day) {
            case SUN -> log("星期天");
            case SAT -> log("星期六");
        }
    }

    public static void log(String log) {
        System.out.println(log);
    }
}
